home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / Wood.0.72 / Sources / ObjectError.h < prev    next >
Encoding:
Text File  |  1994-06-01  |  1.3 KB  |  47 lines

  1. // ObjectError.h
  2. // 
  3. // Original class by:
  4. // Bill Bumgarner, Andrew Stone, Mike Morton, and Julie Zalenski
  5. //
  6. // A class that poses as object and does crash-reporting.
  7. // Catches terminating signals (ie seg faults, bus errors)
  8. // and fatal Objective-C runtime errors and writes a backtrace 
  9. // out to the console using some shady hacks.  This could be modified
  10. // to write backtrace to a file, mail message, etc... if desired.
  11. //
  12. // Modified by Ivo Rothschild (ivo@hasc.ca) to try to continue
  13. //            when muddling on.
  14. //
  15. // Use at own Risk (so sayeth the authors).
  16. //
  17. // NO WARRANTY:
  18. // ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE 
  19. // IS HEREBY DISCLAIMED.  IN NO EVENT WILL THE AFOREMENTIONED PARTIES BE LIABLE 
  20. // FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL 
  21. // DAMAGES ARISING OUT OF THE USE OF OR INABILITY TO USE THIS CODE.
  22. //
  23.  
  24. #import <objc/Object.h>
  25.  
  26. @interface ObjectError:Object
  27. {
  28.     // No Ivars
  29. }
  30.  
  31. + setup;
  32. + setMuddleOn:(BOOL)flag;
  33. + setSignalHandler:(void (*)())handler;
  34. + resumeHandlingCrashes;
  35. + stopHandlingCrashes;
  36. + printFunctionFromFP:(void *)framePointer;
  37. + printMethodFromFP:(void *)framePointer;
  38. + printBacktrace;
  39. + dumpBacktrace:(const char *)message;
  40.  
  41. - error:(const char *)aString, ...;
  42. + error:(const char *)aString, ...;
  43.  
  44. + tryToContinue;
  45.  
  46. @end
  47.